//import './assets/main.css'
// 引入初始化的样式文件
import '@/styles/common.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// 引入懒加载指令插件
import { imgLazyLoadPlugin } from '@/directives/imgLazyLoad'
// 引入全局组件插件
import { componentsPlugin } from "@/components/index";

const app = createApp(App)
const pinia = createPinia()
//注册pinia持久化插件
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(imgLazyLoadPlugin)
app.use(componentsPlugin)

app.mount('#app')
